マーキー |
左へスクロール |
<marquee>左へスクロールします</marquee> |
|
右へスクロール |
<marquee direction="right">右へスクロールします</marquee> |
|
上へスクロール |
<marquee direction="up" height="45">上へスクロールします</marquee> |
|
下へスクロール |
<marquee direction="down" height="45">下へスクロールします</marquee> |
|
上下にスクロール |
<marquee direction="up" behavior="alternate" height="45">上下にスクロールします</marquee > |
|
点滅 |
<marquee scrolldelay="300"
scrollamount="80" width="80"> 点滅</marquee> |
|
背景色付スクロール |
<marquee bgcolor="#0066ff">背景色付のスクロール</marquee> |
|
画像のスクロール |
<marquee direction=left scrollamount="5"><img src="画像URL"></marquee> |
|
背景色付き、幅・高さ指定のスクロール |
<marquee behavior="alternate" bgcolor="yellow" height="20" width="200">スクロール</marquee> |
|
速度・幅 等を指定 |
<marquee direction=left
scrolldelay=200 width=200 height=20
bgcolor="#ffffff">文字記載</marquee> |
|
UP・Down |
<marquee direction=up behavior=alternate width=200 height=50><marquee behavior=alternate>文字記載</marquee></marquee> |
|
2行以上で
スクロール |
<marquee direction=left scrolldelay=300 width=200
height=60 bgcolor="#ffffff"><center><b>1行目<br>2行目<br>3行目<br></b></center></marquee> |
1行目 2行目 3行目
|
marquee タグで指定できる属性説明 |
direction : スクロールの方向を指定(省略時はleft)
left(左方向)、right(右方向)、up(上方向)、down(下方向)
behavior : スクロールの形式を指定(省略時はscroll)
scroll(スクロールします)、slide(端まで行くと停止)、
alternate(往復)
scrolldelay : スクロール速度をミリ秒で指定
left(左方向)、right(右方向)、up(上方向)、down(下方向)
hspace : スクロール文字の横方向の余白サイズをピクセル値で指定
vspace : スクロール文字の縦方向の余白サイズをピクセル値で指定
width : スクロール文字の表示幅をピクセル値で指定
height : スクロール文字の表示高をピクセル値で指定
bgcolor : スクロール文字の表示背景色の指定 |